/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "工单",TableName = "upper_work_order")]
    public partial class upper_work_order:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int work_order_id { get; set; }

       /// <summary>
       ///工单编号主键
       /// </summary>
       [Display(Name ="工单编号主键")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string work_order_number { get; set; }

       /// <summary>
       ///工件id(外键)
       /// </summary>
       [Display(Name ="工件id(外键)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? workpiece_id { get; set; }

       /// <summary>
       ///优先等级：1，2，3，4
       /// </summary>
       [Display(Name ="优先等级：1，2，3，4")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? priority { get; set; }

       /// <summary>
       ///材料表id
       /// </summary>
       [Display(Name ="材料表id")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? material_id { get; set; }

       /// <summary>
       ///粗加工：1，半精加工：3，精加工：5
       /// </summary>
       [Display(Name ="粗加工：1，半精加工：3，精加工：5")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int processing_grade { get; set; }

       /// <summary>
       ///长度
       /// </summary>
       [Display(Name ="长度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? length { get; set; }

       /// <summary>
       ///宽度
       /// </summary>
       [Display(Name ="宽度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? width { get; set; }

       /// <summary>
       ///高度
       /// </summary>
       [Display(Name ="高度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? height { get; set; }

       /// <summary>
       ///0:未开始，1：加工中，2：已完成
       /// </summary>
       [Display(Name ="0:未开始，1：加工中，2：已完成")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int process_Status { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? creat_time { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? update_time { get; set; }

       /// <summary>
       ///是否删除：0：否，1：是
       /// </summary>
       [Display(Name ="是否删除：0：否，1：是")]
       [Column(TypeName="bool")]
       [Editable(true)]
       public bool? is_deleted { get; set; }

       /// <summary>
       ///测量编号
       /// </summary>
       [Display(Name ="测量编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string measure_number { get; set; }

       /// <summary>
       ///分中编号
       /// </summary>
       [Display(Name ="分中编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string centring_number { get; set; }

       /// <summary>
       ///找平编号
       /// </summary>
       [Display(Name ="找平编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string make_level_number { get; set; }

       /// <summary>
       ///精度
       /// </summary>
       [Display(Name ="精度")]
       [Column(TypeName="double")]
       [Editable(true)]
       public decimal? accuracy { get; set; }


    }
}